
    <h2>Dialoguer</h2>


    <?php

    echo $this->Form->create('ActionPost', array('url' => array('controller' => 'Actions', 'action' => 'addActionPost')));
    echo $this->Form->input('title');
    echo $this->Form->input('content');
    echo $this->Form->end('Poster');
    // Affichage des messages

    if (!empty($actionPosts)){
        ?>
    <div class="azert">
        <?php
        foreach ($actionPosts as $actionPost){
            ?>
            <div class="actionPost">
                <div class="col3 left">
                    <?php echo $this->Display->avatar($actionPost['User']);?>
                </div>
                <div class="col7 right">
                    <h4 class="title"><?php echo $actionPost['ActionPost']['title'];?></h4>
                    <p>
                        <?php echo $actionPost['ActionPost']['content'];?>
                    </p>
                </div>
            </div>
        </div>
        <?php
        }
        ?>
    <?php
    }
    ?>
